package com.alone.mybatisplus.datascope.conts;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author Alone
 */
@Getter
@RequiredArgsConstructor
@SuppressWarnings("all")
public enum DataScopeType {

    USER_ALL(11, "全部数据", DataScopeModel.USER),
    USER_OWN_CHILD_LEVEL(12, "本级及子级部门", DataScopeModel.USER),
    USER_OWN_LEVEL(13, "本级部门", DataScopeModel.USER),
    USER_OWN(14, "仅个人数据", DataScopeModel.USER),

    DEPT_ALL(21, "全部数据", DataScopeModel.DEPT),
    DEPT_OWN_CHILD_LEVEL(22, "本级及子级部门", DataScopeModel.DEPT),
    DEPT_OWN_LEVEL(23, "本级部门", DataScopeModel.DEPT),

    ;

    private final Integer value;
    private final String name;
    private final DataScopeModel model;

}

